package com.meila.cms.model.spider;

import us.codecraft.webmagic.model.annotation.ExtractBy;
import us.codecraft.webmagic.model.annotation.HelpUrl;
import us.codecraft.webmagic.model.annotation.TargetUrl;

import java.io.Serializable;

/**
 * ***********************************************************
 *
 * @类名 : com.meila.cms.model.spider.类名
 * @DESCRIPTION : 这家伙太懒啥都没写
 * @AUTHOR :  一个风情万种的男子
 * @DATE : 2016/4/23
 * ***********************************************************
 */
@TargetUrl("http://yui-aragaki.lespros.co.jp/news/detail/\\d+")
@HelpUrl("https://yui-aragaki.lespros.co.jp/news/")
public class GakkiSpiderVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExtractBy("//div[@class='information-title']/a/text()")
    private String title ;
    //图片的地址
    @ExtractBy("//div[@class='information']/img/@src")
    private String imgUrl ;
    //文章日期
    @ExtractBy("//div[@class='information-day']/text()")
    private String createdDate;
    //网址
    private String sourceUrl;
    //文章内容
    @ExtractBy("//div[@class='information-txt']/html()")
    private String context;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(String createdDate) {
        this.createdDate = createdDate;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
